#ifndef QWTDIALHOST_H
#define QWTDIALHOST_H

#include "qwtabstractsliderhost.h"

#include "../../libs/qwt/qwt_dial.h"
#include "../../libs/shared/qcommonstruct.h"

class QDialWidget : public QwtDial
{
    Q_OBJECT
    Q_PROPERTY( tagNeedleInfo needle_info READ needleInfo WRITE setNeedleInfo )
public:
    QDialWidget(QWidget* parent=0);

    tagNeedleInfo   needleInfo();
    void            setNeedleInfo(const tagNeedleInfo &info);
protected:
    tagNeedleInfo   m_needle_info;
};

class QwtDialHost: public QwtAbstractSliderHost
{
    Q_OBJECT
public:
    Q_INVOKABLE QwtDialHost(QAbstractHost* parent=0);

    static QString get_show_name();
    static QString get_show_icon();
    static QString get_show_group();
protected:
    void    init_property();
protected:
    void    create_object();
};

#endif // QWTDIALHOST_H
